package com.taoshen.entity;

import lombok.*;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.List;

/**
 * @Description
 * @Author Zhang Litao
 * @Date 2021/11/11 11:19
 */
@Setter
@Getter
@ToString
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@Document("location")
public class Location {
    @Id
    private String id;

    private String name;

    private String address;

    private Integer gender;

    @Field("loc")
    private List<Double> loc;
}


